home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-12-31 | 426 b | 16 lines | [TEXT/MACA] |
-
- int font#
- 0 variable fontName 32 allot
-
- \ given a font number, returns name of font else null string
- : getFontName ( n -- addr len ) makeint fontName +base call getFontName
- fontName count ;
-
- : getfont# ( addr len -- n) str255 abs: font# call getFnum get: font#
- dup 0=
- IF buf255 count swap +base swap >uc
- get: font# getFontName swap +base swap >uc
- buf255 count fontName count $=
- IF ." not found" drop THEN
- THEN ;
-